package
{
	import flash.display.Sprite;
	import flash.text.TextField;
	import flash.text.TextFormat;
	
	public class TestFont extends Sprite
	{
		[Embed(source="resource/font/Pinyinok.ttf",fontFamily="Regular")]
		private var pinyinFont:String;
		public function TestFont()
		{
			init();
		}
		
		private function init():void
		{
			var txt:TextField = new TextField();
			txt.x = 200;
			txt.y = 300;
			txt.width = 200;
			txt.text = "王万俊1234\n4923749";
			this.addChild(txt);
			
			var tf:TextFormat = new TextFormat();
			tf.font = "Pinyinok";
			tf.size = 24;
			txt.setTextFormat(tf);
		}
	}
}